package com.ruoyi.be.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

import java.util.Date;

/**
 * 分床记录对象 t_medical_cpoe_splitbed
 * 
 * @author ly
 * @date 2022-01-05
 */
public class MyMedicalCpoeSplitbed extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 分床记录表id(随机) */
    private String id;

    /** 患者id */
    @Excel(name = "患者id")
    private String personid;

    /** 主治医生ID */
    @Excel(name = "主治医生ID")
    private String doctorid;

    /** 床位ID */
    @Excel(name = "床位ID")
    private String bedid;

   /** 患者姓名 */
    @Excel(name = "患者姓名")
    private String grname;

    /** 主职医生姓名 */
    @Excel(name = "主职医生姓名")
    private String user_name;

    /** 病区 */
    @Excel(name = "病区")
    private String areaname;

    /** 病房 */
    @Excel(name = "病房")
    private String name;

    /** 床位 */
    @Excel(name = "床位")
    private String cwname;

    /** 备注 */
    @Excel(name = "备注")
    private String remark;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createTime;

    /* 挂号编号 */
    @Excel(name = "挂号编号")
    private Long sid;

    /* 医生病号 */
    @Excel(name = "医生编号")
    private Long user_id;

    public Long getUser_id() {
        return user_id;
    }

    public void setUser_id(Long user_id) {
        this.user_id = user_id;
    }

    public Long getSid() {
        return sid;
    }

    public void setSid(Long sid) {
        this.sid = sid;
    }

    @Override
    public Date getCreateTime() {
        return createTime;
    }

    @Override
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getGrname() {
        return grname;
    }

    public void setGrname(String grname) {
        this.grname = grname;
    }

    public String getUser_name() {
        return user_name;
    }

    public void setUser_name(String user_name) {
        this.user_name = user_name;
    }

    public String getAreaname() {
        return areaname;
    }

    public void setAreaname(String areaname) {
        this.areaname = areaname;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getCwname() {
        return cwname;
    }

    public void setCwname(String cwname) {
        this.cwname = cwname;
    }

    @Override
    public String getRemark() {
        return remark;
    }

    @Override
    public void setRemark(String remark) {
        this.remark = remark;
    }

    public void setId(String id)
    {
        this.id = id;
    }

    public String getId() 
    {
        return id;
    }
    public void setPersonid(String personid) 
    {
        this.personid = personid;
    }

    public String getPersonid() 
    {
        return personid;
    }
    public void setDoctorid(String doctorid) 
    {
        this.doctorid = doctorid;
    }

    public String getDoctorid() 
    {
        return doctorid;
    }
    public void setBedid(String bedid) 
    {
        this.bedid = bedid;
    }

    public String getBedid() 
    {
        return bedid;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("personid", getPersonid())
            .append("doctorid", getDoctorid())
            .append("bedid", getBedid())
            .append("createTime", getCreateTime())
            .append("remark", getRemark())
            .toString();
    }
}
